package com.fgba.express.data.search;

import com.fgba.express.core.search.BaseSearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 快递查询
 * </p>
 *
 * @author fgba
 * @since 2022-02-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ExpressSearch对象", description = "快递查询")
public class ExpressSearch extends BaseSearch {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "快递编号")
    private String number;

    @ApiModelProperty(value = "收件人姓名")
    private String recipient;

    @ApiModelProperty(value = "取件码")
    private String code;

    @ApiModelProperty(value = "快递公司")
    private String company;

    @ApiModelProperty(value = "是否取件")
    private Boolean expressState;

    @ApiModelProperty(value = "入库时间开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime inTimeStart;

    @ApiModelProperty(value = "入库时间结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime inTimeEnd;

    @ApiModelProperty(value = "出库时间开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime outTimeStart;

    @ApiModelProperty(value = "出库时间结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime outTimeEnd;
}
